<template>
    <div id="setc">
        <div id="menu">
            <span>账号中心</span>
            <div>
                <van-icon name="arrow" />
            </div>
        </div>

        <div id="menu">
            <span>银行卡解绑</span>
            <div>
                <van-icon name="arrow" />
            </div>
        </div>

        <div id="menu">
            <span>收货地址</span>
            <div>
                <van-icon name="arrow" />
            </div>
        </div>

        <div id="menu">
            <span>隐私管理</span>
            <div>
                <van-icon name="arrow" />
            </div>
        </div>

        <div id="menu">
            <span>关于商城</span>
            <div>
                <van-icon name="arrow" />
            </div>
        </div>

        <div id="exit" @click="exit">
            退出登录
        </div>
    </div>
</template>

<script>
export default {
    data() {
        return {
            flag:true
        }
    },
    methods: {
        exit() {
            localStorage.removeItem("token")
            this.$nextTick(()=>{
                this.$router.push('/myhome')
            })
        }
    }
}
</script>

<style scoped lang="scss">
#setc {
    margin-top: .5rem;
    background-color: white;
}

#menu {
    box-sizing: border-box;
    height: 2.8125rem;
    display: flex;
    justify-content: space-between;
    background-color: white;
    border-bottom: 1px solid rgba(128, 128, 128, 0.347);
    line-height: 2.8125rem;
    color: #333;
    font-size: .75rem;
    position: relative;
    margin: 0 1rem;
}

#img {
    width: 1.5625rem;
    height: 1.5625rem;
    background-image: url() no-repeat center;
}

#exit {
    width: 100%;
    height: 2.8125rem;
    color: black;
    font-size: 1rem;
    line-height: 2.8125rem;
    text-align: center;
    margin-top: 1.25rem;
    background-color: white;
}
</style>